package com.csipsimple.utils;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.telephony.TelephonyManager;

public class Callbuzz extends Service {

	private String getOwnPhoneNumberIntern() {

		TelephonyManager mTelephonyMgr;

		mTelephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);

		String number = mTelephonyMgr.getLine1Number();

		return number;

	}

	public static String getOwnPhoneNumber() {

		Callbuzz ut = new Callbuzz();

		return ut.getOwnPhoneNumberIntern();

	}

	@Override
	public IBinder onBind(Intent arg0) {

		// TODO Auto-generated method stub

		return null;

	}

}
